package middleware

import (
	"gorm.io/gorm"
	"trusteva/common/jwtx"
)

type JwtWithRBACAuthMiddleware struct {
	*jwtx.JwtAuthWithRBACMiddleware
}

func NewJwtWithRBACAuthMiddleware(db *gorm.DB, accessSecret string, accessExpire int64) *JwtWithRBACAuthMiddleware {
	return &JwtWithRBACAuthMiddleware{
		jwtx.NewJwtWithRBACAuthMiddleware(db, accessSecret, accessExpire),
	}
}
